<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
</head>

<body ng-app="app">
	<script src="angular-1.5.8/angular.min.js"></script>
	<script>
		var app = angular.module('app',[]);
		app.controller('promiseControl',function($scope,$q,$http) {
			$q.all({first: $http.get('json1.txt'),second: $http.get('json2.txt')}).then(function(arr){
				console.log(arr);
				angular.forEach(arr,function(d){
					console.log(d);
					console.log(d.data);
				})
			});
		});
	</script>
</body>

</html>